POV-Ray : Newsgroups : povray.general : Problem shaping a CSG object : Re: Problem shaping a CSG object Server Time
30 Jul 2024 12:28:57 EDT (-0400)
  Re: Problem shaping a CSG object  
From: Chris B
Date: 29 Jul 2009 13:00:43
Message: <4a70803b@news.povray.org>
"Darren New" <dne### [at] sanrrcom> wrote in message 
news:4a7078d0$1@news.povray.org...
> clipka wrote:
>> Darren New <dne### [at] sanrrcom> wrote:
>>> Could one start with a cylinder instead? Since the top is as wide as the
>>> bottom in at least one direction?
>>
>> Hm, yes, I guess a cylinder intersected with a wedge would fit Thomas' 
>> bill, too
>> (at least nominally, though it may not be what he looked for, due to the 
>> hard
>> edges this would produce)
>
> I was thinking more scale it from x=1.0 y=1.0 to x=1.0 y=0.0 as you move 
> from z=0 to z=1, if that makes sense. Not an intersection, but a 
> non-linear scaling.
>

That's what two of the three examples I posted this morning do, one using an 
Isosurface, the other using slices of a sphere, (but a cylinder would work 
the same). The third example I posted used the method Clipka outlined, which 
generates a slightly different shaped surface.

I think there is at least one more way without using shear, which is to 
scale a cone non uniformly, rotate and slice it, such that the horizontal 
section becomes circular while the edge is vertical, then fill out the 
middle as before.

Regards,
Chris B.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.